#!/usr/bin/env python
# coding=utf-8
"""
# @Created on : 2016/04/23 16:27
# @Author     : ldf (ldf@eehello.com)
# @Link       : http://www.eehello.com
# @Version    : 
# 本程序在python2.7下测试通过
"""
'''
def run(kahao):
    print('查询')
'''
import pickle

def run(kahao):
    flag = 1
    while flag:
        with open('backgroud/ka_mon', 'rb') as fm:
            ka_mon_l = pickle.load(fm)
            ka_mon = ka_mon_l[kahao]
        print('您目前的额度为：%s' % ka_mon)
        qu = raw_input("退出，请按'q'：")
        if qu == 'q':
            flag = 0
